package com.ticket.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author 全谢民
 * @version 8.0
 * @description: TODO   评论表-v_comment视图
 * @date 2023/10/15 21:05
 */
public class Comment {
    private int userId;     //用户id
    private String userName;    //用户姓名
    private String userPicture; //用户头像
    private String activityId;  //内容id--例如电影id
    private String activityPicture; //头像
    private String activityName; //名称
    private String activityType;    //类型
    private int commentId;  //评论id
    private String commentContent;  //评论内容
    private int commentGood;    //评论点赞人数
    private LocalDateTime commentTime;  //评论时间

    public Comment(int userId) {
        this.userId = userId;
    }

    public Comment(int userId, String activityType) {
        this.userId = userId;
        this.activityType = activityType;
    }

    public Comment() {
    }

    @Override
    public String toString() {
        return "Comment{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPicture='" + userPicture + '\'' +
                ", activityId='" + activityId + '\'' +
                ", activityPicture='" + activityPicture + '\'' +
                ", activityType='" + activityType + '\'' +
                ", commentId=" + commentId +
                ", commentContent='" + commentContent + '\'' +
                ", commentGood=" + commentGood +
                ", commentTime=" + commentTime +
                '}';
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPicture() {
        return userPicture;
    }

    public void setUserPicture(String userPicture) {
        this.userPicture = userPicture;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getActivityPicture() {
        return activityPicture;
    }

    public void setActivityPicture(String activityPicture) {
        this.activityPicture = activityPicture;
    }

    public String getActivityType() {
        return activityType;
    }

    public void setActivityType(String activityType) {
        this.activityType = activityType;
    }

    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public int getCommentGood() {
        return commentGood;
    }

    public void setCommentGood(int commentGood) {
        this.commentGood = commentGood;
    }

    public LocalDateTime getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(LocalDateTime commentTime) {
        this.commentTime = commentTime;
    }
}
